import {
    http4
} from "@/service/axios";


// 泊位列表
export function getBerth(data) {
    return http4.post({
        url: "/road/berth/list/page",
        data,
    });
}

// 新增泊位列表
export function getAddBerth(data) {
    return http4.post({
        url: "/road/berth/add",
        data,
    });
}

// 编辑泊位列表
export function getEditBerth(data) {
    return http4.post({
        url: "/road/berth/edit",
        data,
    });
}

// 删除泊位列表
export function getDeleteBerth(data) {
    return http4.post({
        url: `/road/berth/remove/${data}`,
        data,
    });
}

// 泊位信息导入模板下载接口
export function getExportManagementBerth(data) {
    return http4.get({
        url: `/road/berth/import/template/download`,
        data,
        responseType: "blob",
    });
}